# Header path

set(OpenCV_DIR ../../depends/install//lib/cmake/opencv4)
set(OpenCV_STATIC_INCLUDE_DIR ../../depends/install//include/opencv4)

find_package(OpenCV REQUIRED)

link_directories(../../depends/install//lib)
link_directories(../../depends/install//lib/opencv4/3rdparty)

include_directories(${OpenCV_STATIC_INCLUDE_DIR})

add_library(OsdPlugin SHARED osdPlugin.cpp)
target_compile_options(OsdPlugin PRIVATE -fPIC)
target_include_directories(OsdPlugin PRIVATE
    ../../inc/freetype2
    ../../inc/osd
    ../../../application/common/)
target_link_libraries(OsdPlugin PRIVATE ${OpenCV_LIBS})